flask: fix memory leaks
authorJan Beulich <jbeulich@suse.com>
Tue, 11 Feb 2014 10:11:48 +0000 (11:11 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 11 Feb 2014 10:11:48 +0000 (11:11 +0100)
commit57c9f2caf05de41913b3e4eb48c0c3ad6c18dd3f
tree6ca6783d3cf37b64a4f7d07578b8dd6782c9822a
parent06bbcaf48d09c18a41c482866941ddd5d2846b44
flask: fix memory leaks

Plus, in the case of security_preserve_bools(), prevent double freeing
in the case of security_get_bools() failing.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
xen/xsm/flask/flask_op.c
xen/xsm/flask/ss/services.c